package com.zbec.mdrs.entity.guarantee;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbec.mdrs.entity.RecordEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by fxl on 2015/10/17.
 */
@Entity
@Table(name = "tb_guarantee")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Guarantee  extends RecordEntity implements Serializable {
    private String dbjgzzdm;//担保机构组织机构代码
    private String jrjgbm;//金融机构编码
    private String dbhth;//担保业务编号/合同号
    private String bdbrzzjgdm;//被担保人组织机构代码
    private String sjsj;//数据时间
    private String bz;//币种
    private String dbywzl;//担保业务种类
    private BigDecimal dbye;//担保余额
    private Date dbksrq;//担保开始日期
    private Date dbdqrq;//担保到期日期
    private String wjfl;//五级分类
    private BigDecimal dydcfsje;//当月代偿发生金额
    private BigDecimal dydbfsje;//当月担保发生额
    private Integer dyfsbs;//当月担保发生笔数
    private Integer zbbs;//在保笔数

    private String detail;
    private String dkkbm;//贷款卡编号
    public String getDkkbm() {
        return dkkbm;
    }

    public void setDkkbm(String dkkbm) {
        this.dkkbm = dkkbm;
    }

    public String getDbjgzzdm() {
        return dbjgzzdm;
    }

    public void setDbjgzzdm(String dbjgzzdm) {
        this.dbjgzzdm = dbjgzzdm;
    }

    public String getJrjgbm() {
        return jrjgbm;
    }

    public void setJrjgbm(String jrjgbm) {
        this.jrjgbm = jrjgbm;
    }

    public String getDbhth() {
        return dbhth;
    }

    public void setDbhth(String dbhth) {
        this.dbhth = dbhth;
    }

    public String getBdbrzzjgdm() {
        return bdbrzzjgdm;
    }

    public void setBdbrzzjgdm(String bdbrzzjgdm) {
        this.bdbrzzjgdm = bdbrzzjgdm;
    }

    public String getSjsj() {
        return sjsj;
    }

    public void setSjsj(String sjsj) {
        this.sjsj = sjsj;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getDbywzl() {
        return dbywzl;
    }

    public void setDbywzl(String dbywzl) {
        this.dbywzl = dbywzl;
    }

    public BigDecimal getDbye() {
        return dbye;
    }

    public void setDbye(BigDecimal dbye) {
        this.dbye = dbye;
    }

    public Date getDbksrq() {
        return dbksrq;
    }

    public void setDbksrq(Date dbksrq) {
        this.dbksrq = dbksrq;
    }

    public Date getDbdqrq() {
        return dbdqrq;
    }

    public void setDbdqrq(Date dbdqrq) {
        this.dbdqrq = dbdqrq;
    }

    public String getWjfl() {
        return wjfl;
    }

    public void setWjfl(String wjfl) {
        this.wjfl = wjfl;
    }

    public BigDecimal getDydcfsje() {
        return dydcfsje;
    }

    public void setDydcfsje(BigDecimal dydcfsje) {
        this.dydcfsje = dydcfsje;
    }

    public BigDecimal getDydbfsje() {
        return dydbfsje;
    }

    public void setDydbfsje(BigDecimal dydbfsje) {
        this.dydbfsje = dydbfsje;
    }

    public Integer getDyfsbs() {
        return dyfsbs;
    }

    public void setDyfsbs(Integer dyfsbs) {
        this.dyfsbs = dyfsbs;
    }

    public Integer getZbbs() {
        return zbbs;
    }

    public void setZbbs(Integer zbbs) {
        this.zbbs = zbbs;
    }

    @Transient
    public String getDetail() {
        this.detail=" tb_guarantee RecordId : "+this.recordId+" 担保机构组织机构代码 : "+this.dbjgzzdm
                +" 被担保人组织机构代码 : "+this.bdbrzzjgdm;
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
